#2.4

def sieve():
    s = str()
    h = [True] * 100
    h[:2] = [False, False]
    for i in range(2, int(100 ** 0.5) + 1):
        if h[i]:
            h[i*i::i] = [False] * len(h[i*i::i]) 
    for i, e in enumerate(h):
        if e:
            s += str(i) + ' '
    print(s)

sieve()
print(" ".join("%s" %x for x in range(2,100) if not [y for y in range(2,x) if x % y ==0] ))
